package com.b2bpsssm.mapper;

import com.b2bpsssm.pojo.PurchasePassOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentOrderMapper {
    // 有分页查询信息
    List<PurchasePassOrder> queryPaymentOrderList(@Param("start") Integer start, @Param("off") Integer off) ;

    //  根据单据编号查询数据
    List<PurchasePassOrder> queryPaymentOrderByNumber(String document_no);

    // 根据供货方查询
   List<PurchasePassOrder> queryPaymentOrderBySupplier(@Param("start") Integer start, @Param("off") Integer off, @Param("supplier") String supplier);


    //    以付款方关键字 时间范围 进行关键字查询
    List<PurchasePassOrder> selPaymentOrderLikeSupplier(@Param("start") Integer start, @Param("off") Integer off, @Param("sub_date1") String sub_date1, @Param("sub_date2") String sub_date2, @Param("supplier") String supplier);

      //添加付款方
    int addPaymentOrder(PurchasePassOrder purchasePassOrder);
}
